require 'puppet/provider/parsedfile'

shells = "/etc/shells"

Puppet::Type.type(:shells).provide(:parsed,
                  :parent => Puppet::Provider::ParsedFile,
                  :default_target => shells,
                  :filetype => :flat
                  ) do

                  desc "The shells provider that uses the ParsedFile class"

                  confine :exists => shells
                  text_line :comment, :match => /^#/;
                  text_line :blank, :match => /^\s*$/;

                  record_line :parsed, :fields => %w{name}
end